-- ===========================
-- Initialize the global variables and defaults
-- ===========================
local DEFAULT_TIMESTEP = 1 -- in seconds

-- Reset to the default OrunjSave structure.
local function GetDefaultOrunjSave()
	return {sessions = {}, settings = {}}
end

-- Load the settings.
function Orunj:LoadSettings()
	OrunjSave = OrunjSave or GetDefaultOrunjSave()
	OrunjSave.settings.timestep = OrunjSave.settings.timestep or DEFAULT_TIMESTEP
	
	Orunj.settings = OrunjSave.settings	
end

-- Clear the saved variables.
function Orunj:ClearSaved()
	OrunjSave = GetDefaultOrunjSave()
	print(Orunj.cmdprefix .. "Orunj saved data cleared.")
end

-- Instantiate OrunjSettings if it hasn't been instantiated yet.


-- Make sure to set up any defaults here.